
<?xml version="1.0" encoding="UTF-8"?>
<html>
<head>
    <title>接口测试报告</title>
    <meta name="generator" content="HTMLTestRunner 0.8.2.2"/>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <link href="http://libs.baidu.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
    <script src="http://libs.baidu.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>

    <!-- 引入 echarts.js -->
    <script type="text/javascript" src="https://cdn.bootcss.com/echarts/4.0.2/echarts.js"></script>
    <script src="https://cdn.bootcss.com/echarts/4.3.0-rc.2/extension/dataTool.js"></script>

    <style type="text/css" media="screen">
        body {
            margin: 0;
            font-family: "Arial", "Microsoft YaHei", "黑体", "宋体", sans-serif;
            font-size: 18px;
            line-height: 1.5;
            line-height: 1.5;
            color: #333333;
        }

        .table {
            margin-bottom: 1px;
            width: 100%;
        }

        .hiddenRow {
            display: none;
        }

        .container-fluid {
            padding-right: 120px;
            padding-left: 120px;
        }

        .nav-tabs li {
            width: 186px;
            text-align: center;
        }
    </style>
</head>

<body >
    <script language="javascript" type="text/javascript">

    function showClassDetail(detail_id, hiddenRow_id, class_type) {
        console.log(document.getElementById(hiddenRow_id).className)

        if ('详细' ==  document.getElementById(detail_id).innerText) {
            if ('all' == class_type) {
                document.getElementById(hiddenRow_id).className = 'all';
            }
            else if ('success' == class_type) {
                document.getElementById(hiddenRow_id).className = 'success';
            }
            else if ('error' == class_type) {
                document.getElementById(hiddenRow_id).className = 'error';
            }
            else{
                document.getElementById(hiddenRow_id).className = 'untreaded';
            }
            document.getElementById(detail_id).innerText = "收起"
        }
        else {
            document.getElementById(detail_id).innerText = "详细"
            document.getElementById(hiddenRow_id).className = 'hiddenRow';
        }
    }

    </script>

    <div class="container-fluid">
        <div class="page-header">
            <h1 class="text-primary" style="font-size:45px;line-height:75px">接口自动化测试报告</h1>
        </div>

        <div class="col-md-12">
            <div class="col-md-4" style="Background-Color:#F5F5F5; height:300px">
                <h3 style="line-height:25px">测试基本信息</h3>
                <table class="table table-hover table-bordered" style="width:100% height:11px">
                    <tbody>
                        <tr class="info">
                            <td class="text-center">开始时间</td>
                            <td class="text-center">2020-08-14 18:17:03</td>
                        </tr>
                        <tr class="info">
                            <td class="text-center">结束时间</td>
                            <td class="text-center">2020-08-14 18:17:04</td>
                        </tr>
                        <tr class="info">
                            <td class="text-center">测试用时</td>
                            <td class="text-center">0:00:01.012057</td>
                        </tr>
                        <tr class="info">
                            <td class="text-center">总用例数</td>
                            <td class="text-center">4</td>
                        </tr>
                        <tr class="info">
                            <td class="text-center">通过率</td>
                            <td class="text-center">50.00%</td>
                        </tr>
                        <tr class="info">
                            <td class="text-center">测试域名</td>
                            <td class="text-center">https://tcc.taobao.com</td>
                        </tr>
                    </tbody>
                </table>
            </div>

            <div class="col-md-8">
                <!-- 为ECharts准备一个具备大小（宽高）的Dom -->
                <div id="main" style="height:300px;">
					<script type="text/javascript">
						var myChart = echarts.init(document.getElementById('main'));
						console.log(myChart)
						var option = {
									 backgroundColor: '#F5F5F5', // 背景色

						title: {
							text: '测试统计数据',
							x: 'center'
						},

						legend: {
							orient: 'vertical',
							x: 'left',
							data: ['成功', '失败', '错误']
						},

						color: ['#3c763d', '#a94442', '#0099CC'],

						calculable: true,

						series: [{
							name: '测试结果',
							type: 'pie',
							radius: '55%',
							center: ['50%', '60%'],
							startAngle: 135,
							data: [{
								value: 2,
								name: '成功',
								label: {
									formatter: '{b} : {c} ({d}%)',
									textStyle: {
										align: 'left',
										fontSize: 15,
									}
								},
								labelLine: {
									length: 40,
								}
							}, {
								value: 1,
								name: '失败',
								label: {
									formatter: '{b} : {c} ({d}%)',
									textStyle: {
										align: 'left',
										fontSize: 15,
									}
								},
								labelLine: {
									length: 40,
								}
							}, {
								value: 1,
								name: '错误',
								label: {
									formatter: '{b} : {c} ({d}%)',
									textStyle: {
										align: 'left',
										fontSize: 15,
									}
								},
								labelLine: {
									length: 40,
								}
							}],
						}]
						};
						// 为echarts对象加载数据
					myChart.setOption(option);
					</script>
				</div>
            </div>
        </div>

    <div><span>&nbsp;</span></div>

    <div class="col-md-12">
        <div class="tabbable" id="tabs-957640">
            <ul class="nav nav-tabs">
                <li class="active">
                    <a href="#panel-0" data-toggle="tab" style="Background-Color: #428bca; color: #fff;">全  部 (4)</a>
                </li>
                <li>
                    <a href="#panel-1" data-toggle="tab" style="Background-Color: #5cb85c; color: #fff;">成  功 (2)</a>
                </li>
                <li>
                    <a href="#panel-2" data-toggle="tab" style="Background-Color: #d9534f; color: #fff;">失  败 (1)</a>
                </li>
                <li>
                    <a href="#panel-3" data-toggle="tab" style="Background-Color: #5bc0de; color: #fff;">错  误 (1)</a>
                </li>
            </ul>
        </div>
        <div class="tab-content">
            <div class="tab-pane active" id="panel-0">
                <table class="table table-hover table-bordered">
                   <tr class="all">
                         <td class="text-center"  style="Background-Color:#dff0d8">项目名称</td>
                         <td class="text-center"  style="Background-Color:#dff0d8">用例编号</td>
                         <td class="text-center"  style="Background-Color:#dff0d8">用例名称</td>
                         <td class="text-center"  style="Background-Color:#dff0d8">接口地址</td>
                         <td class="text-center"  style="Background-Color:#dff0d8">接口方法</td>
                         <td class="text-center"  style="Background-Color:#dff0d8">测试结果</td>
                         <td class="text-center"  style="Background-Color:#dff0d8">详细信息</td>
                   </tr>
                   <tr class="all">
                           <td class="text-center" style="Background-Color:#ffffff">ITS</td>
                           <td class="text-center" style="Background-Color:#ffffff">1</td>
                           <td class="text-center" style="Background-Color:#ffffff">正确</td>
                           <td class="text-center" style="Background-Color:#ffffff">/cc/json/mobile_tel_segment.htm</td>
                           <td class="text-center" style="Background-Color:#ffffff">Get</td>
                           <td class="text-center" style="Background-Color:#ffffff"><font color="#5cb85c">通过</font></td>
                           <td class="text-center" style="Background-Color:#ffffff"><a href="javascript:showClassDetail('panel0-detail-1','panel0-hidden-1', 'success')" class="detail" id = "panel0-detail-1">详细</a></td>
                   </tr>
                   <tr class='hiddenRow' id="panel0-hidden-1" >
                       <td colspan='7'>
                           <div>
                               <pre class="text-left">
__GetZoneResult_ = {
    mts:'1366926',
    province:'陕西',
    catName:'中国移动',
    telString:'13669269525',
	areaVid:'30503',
	ispVid:'3236139',
	carrier:'陕西移动'
}

                               </pre>
                           </div>
                       </td>
                   </tr>
                   <tr class="all">
                           <td class="text-center" style="Background-Color:#ffffff">ITS</td>
                           <td class="text-center" style="Background-Color:#ffffff">2</td>
                           <td class="text-center" style="Background-Color:#ffffff">失败</td>
                           <td class="text-center" style="Background-Color:#ffffff">/cc/json/mobile_tel_segment.htm</td>
                           <td class="text-center" style="Background-Color:#ffffff">Get</td>
                           <td class="text-center" style="Background-Color:#ffffff"><font color="#d9534f">失败</font></td>
                           <td class="text-center" style="Background-Color:#ffffff"><a href="javascript:showClassDetail('panel0-detail-2','panel0-hidden-2', 'success')" class="detail" id = "panel0-detail-2">详细</a></td>
                   </tr>
                   <tr class='hiddenRow' id="panel0-hidden-2" >
                       <td colspan='7'>
                           <div>
                               <pre class="text-left">
['断言失败,预期结果:code:1', '实际结果:code:0', '返回数据:{"code":0,"msg":"请求成功","userId":0,"token":null,"data":{"role":1,"videoPower":"1","snAuthPower":"1","userId":1,"token":"9f88cdad3c3b4e748e5367fb55cba90e"}}']
                               </pre>
                           </div>
                       </td>
                   </tr>
                   <tr class="all">
                           <td class="text-center" style="Background-Color:#ffffff">ITS</td>
                           <td class="text-center" style="Background-Color:#ffffff">3</td>
                           <td class="text-center" style="Background-Color:#ffffff">正确</td>
                           <td class="text-center" style="Background-Color:#ffffff">/auth/send_phone_code</td>
                           <td class="text-center" style="Background-Color:#ffffff">Post</td>
                           <td class="text-center" style="Background-Color:#ffffff"><font color="#5cb85c">通过</font></td>
                           <td class="text-center" style="Background-Color:#ffffff"><a href="javascript:showClassDetail('panel0-detail-3','panel0-hidden-3', 'success')" class="detail" id = "panel0-detail-3">详细</a></td>
                   </tr>
                   <tr class='hiddenRow' id="panel0-hidden-3" >
                       <td colspan='7'>
                           <div>
                               <pre class="text-left">
{'err_code': 1006, 'err_msg': '手机号码格式不正确'}
                               </pre>
                           </div>
                       </td>
                   </tr>
                   <tr class="all">
                           <td class="text-center" style="Background-Color:#ffffff">ITS</td>
                           <td class="text-center" style="Background-Color:#ffffff">4</td>
                           <td class="text-center" style="Background-Color:#ffffff"></td>
                           <td class="text-center" style="Background-Color:#ffffff">123</td>
                           <td class="text-center" style="Background-Color:#ffffff">Post</td>
                           <td class="text-center" style="Background-Color:#ffffff">错误</td>
                           <td class="text-center" style="Background-Color:#ffffff"><a href="javascript:showClassDetail('panel0-detail-4','panel0-hidden-4', 'success')" class="detail" id = "panel0-detail-4">详细</a></td>
                   </tr>
                   <tr class='hiddenRow' id="panel0-hidden-4" >
                       <td colspan='7'>
                           <div>
                               <pre class="text-left">
Invalid URL '123': No schema supplied. Perhaps you meant http://123?
                               </pre>
                           </div>
                       </td>
                   </tr>
                </table>
            </div>


            <div class="tab-pane" id="panel-1">
                <table class="table table-hover table-bordered">
                   <tr class="success">
                         <td class="text-center"  style="Background-Color:#dff0d8">项目名称</td>
                         <td class="text-center"  style="Background-Color:#dff0d8">用例编号</td>
                         <td class="text-center"  style="Background-Color:#dff0d8">用例名称</td>
                         <td class="text-center"  style="Background-Color:#dff0d8">接口地址</td>
                         <td class="text-center"  style="Background-Color:#dff0d8">接口方法</td>
                         <td class="text-center"  style="Background-Color:#dff0d8">测试结果</td>
                         <td class="text-center"  style="Background-Color:#dff0d8">详细信息</td>
                   </tr>
                   <tr class="success">
                           <td class="text-center" style="Background-Color:#ffffff">ITS</td>
                           <td class="text-center" style="Background-Color:#ffffff">1</td>
                           <td class="text-center" style="Background-Color:#ffffff">正确</td>
                           <td class="text-center" style="Background-Color:#ffffff">/cc/json/mobile_tel_segment.htm</td>
                           <td class="text-center" style="Background-Color:#ffffff">Get</td>
                           <td class="text-center" style="Background-Color:#ffffff"><font color="#5cb85c">通过</font></td>
                           <td class="text-center" style="Background-Color:#ffffff"><a href="javascript:showClassDetail('panel1-detail-1','panel1-hidden-1', 'success')" class="detail" id = "panel1-detail-1">详细</a></td>
                   </tr>
                   <tr class='hiddenRow' id="panel1-hidden-1" >
                       <td colspan='7'>
                           <div>
                               <pre class="text-left">
__GetZoneResult_ = {
    mts:'1366926',
    province:'陕西',
    catName:'中国移动',
    telString:'13669269525',
	areaVid:'30503',
	ispVid:'3236139',
	carrier:'陕西移动'
}

                               </pre>
                           </div>
                       </td>
                   </tr>
                   <tr class="success">
                           <td class="text-center" style="Background-Color:#ffffff">ITS</td>
                           <td class="text-center" style="Background-Color:#ffffff">3</td>
                           <td class="text-center" style="Background-Color:#ffffff">正确</td>
                           <td class="text-center" style="Background-Color:#ffffff">/auth/send_phone_code</td>
                           <td class="text-center" style="Background-Color:#ffffff">Post</td>
                           <td class="text-center" style="Background-Color:#ffffff"><font color="#5cb85c">通过</font></td>
                           <td class="text-center" style="Background-Color:#ffffff"><a href="javascript:showClassDetail('panel1-detail-2','panel1-hidden-2', 'success')" class="detail" id = "panel1-detail-2">详细</a></td>
                   </tr>
                   <tr class='hiddenRow' id="panel1-hidden-2" >
                       <td colspan='7'>
                           <div>
                               <pre class="text-left">
{'err_code': 1006, 'err_msg': '手机号码格式不正确'}
                               </pre>
                           </div>
                       </td>
                   </tr>
                </table>
            </div>


            <div class="tab-pane" id="panel-2">
                <table class="table table-hover table-bordered">
                   <tr class="failed">
                         <td class="text-center"  style="Background-Color:#dff0d8">项目名称</td>
                         <td class="text-center"  style="Background-Color:#dff0d8">用例编号</td>
                         <td class="text-center"  style="Background-Color:#dff0d8">用例名称</td>
                         <td class="text-center"  style="Background-Color:#dff0d8">接口地址</td>
                         <td class="text-center"  style="Background-Color:#dff0d8">接口方法</td>
                         <td class="text-center"  style="Background-Color:#dff0d8">测试结果</td>
                         <td class="text-center"  style="Background-Color:#dff0d8">详细信息</td>
                   </tr>
                   <tr class="failed">
                           <td class="text-center" style="Background-Color:#ffffff">ITS</td>
                           <td class="text-center" style="Background-Color:#ffffff">2</td>
                           <td class="text-center" style="Background-Color:#ffffff">失败</td>
                           <td class="text-center" style="Background-Color:#ffffff">/cc/json/mobile_tel_segment.htm</td>
                           <td class="text-center" style="Background-Color:#ffffff">Get</td>
                           <td class="text-center" style="Background-Color:#ffffff"><font color="#d9534f">失败</font></td>
                           <td class="text-center" style="Background-Color:#ffffff"><a href="javascript:showClassDetail('panel2-detail-1','panel2-hidden-1', 'success')" class="detail" id = "panel2-detail-1">详细</a></td>
                   </tr>
                   <tr class='hiddenRow' id="panel2-hidden-1" >
                       <td colspan='7'>
                           <div>
                               <pre class="text-left">
['断言失败,预期结果:code:1', '实际结果:code:0', '返回数据:{"code":0,"msg":"请求成功","userId":0,"token":null,"data":{"role":1,"videoPower":"1","snAuthPower":"1","userId":1,"token":"9f88cdad3c3b4e748e5367fb55cba90e"}}']
                               </pre>
                           </div>
                       </td>
                   </tr>
                </table>
            </div>


            <div class="tab-pane" id="panel-3">
                <table class="table table-hover table-bordered">
                   <tr class="error">
                         <td class="text-center"  style="Background-Color:#dff0d8">项目名称</td>
                         <td class="text-center"  style="Background-Color:#dff0d8">用例编号</td>
                         <td class="text-center"  style="Background-Color:#dff0d8">用例名称</td>
                         <td class="text-center"  style="Background-Color:#dff0d8">接口地址</td>
                         <td class="text-center"  style="Background-Color:#dff0d8">接口方法</td>
                         <td class="text-center"  style="Background-Color:#dff0d8">测试结果</td>
                         <td class="text-center"  style="Background-Color:#dff0d8">详细信息</td>
                   </tr>
                   <tr class="error">
                           <td class="text-center" style="Background-Color:#ffffff">ITS</td>
                           <td class="text-center" style="Background-Color:#ffffff">4</td>
                           <td class="text-center" style="Background-Color:#ffffff"></td>
                           <td class="text-center" style="Background-Color:#ffffff">123</td>
                           <td class="text-center" style="Background-Color:#ffffff">Post</td>
                           <td class="text-center" style="Background-Color:#ffffff">错误</td>
                           <td class="text-center" style="Background-Color:#ffffff"><a href="javascript:showClassDetail('panel3-detail-1','panel3-hidden-1', 'success')" class="detail" id = "panel3-detail-1">详细</a></td>
                   </tr>
                   <tr class='hiddenRow' id="panel3-hidden-1" >
                       <td colspan='7'>
                           <div>
                               <pre class="text-left">
Invalid URL '123': No schema supplied. Perhaps you meant http://123?
                               </pre>
                           </div>
                       </td>
                   </tr>
                </table>
            </div>
        </div>
    </div>


</div>
</body>
</html>
